<?php

/**
 * Here is your custom functions.
 */
function success($data = [], $msg = 'success')
{
  return json([
    'code' => 0,
    'msg' => $msg,
    'data' => $data,
  ]);
}
